package exam.business.service;

import java.util.List;

import exam.common.constant.ResultPort;
import exam.common.key.KeySubQuestion;
import exam.model.dao.TSubQuestionDAO;
import exam.model.entity.TSubQuestionEntity;
import exam.system.business.AbstractService;
import exam.system.business.BusinessServiceInfo;
/**
 * <p>SubQuestionGetListService</p>
 * 
 * @author Phong
 * @version 20/5/2012
 */
public class SubQuestionGetListService extends AbstractService {
	// tSubQuestionDAO
	private TSubQuestionDAO tSubQuestionDAO = new TSubQuestionDAO();
	@Override
	public String executeService(BusinessServiceInfo serviceInfo)
			throws Exception {
		// Goi phuong thuc lay danh sach danh muc cau hoi
		List<TSubQuestionEntity> tSubQuestionEntityList = tSubQuestionDAO.selectListSubQuestion();
		// put vao serviceInfo
		serviceInfo.put(KeySubQuestion.T_SUB_QUESTION_ENTITY_LIST, tSubQuestionEntityList);
		return ResultPort.SUCCESS;
	}

}
